package com.ssy.lingxi.order.model.vo.basic.response;

import com.ssy.lingxi.common.constant.order.OrderModeEnum;

import java.io.Serializable;

/**
 * 下单模式和类型
 * @author wyx
 * @version 2.0.0
 * @date 2021-10-14
 */
public class OrderModeVO implements Serializable {
    private static final long serialVersionUID = -1649735001631885895L;

    public OrderModeVO() {
        this.orderMode = 0;
        this.orderType = 0;
        this.orderModeName = "";
        this.orderTypeName = "";
    }

    public OrderModeVO(OrderModeEnum orderMode) {
        this.orderMode = orderMode.getCode();
        this.orderModeName = orderMode.getName();
        this.orderType = orderMode.getOrderTypeEnum().getCode();
        this.orderTypeName = orderMode.getOrderTypeEnum().getName();
    }

    /**
     * 下单模式
     */
    private Integer orderMode;

    /**
     * 下单模式名称
     */
    private String orderModeName;

    /**
     * 订单类型
     */
    private Integer orderType;

    /**
     * 订单类型名称
     */
    private String orderTypeName;

    public Integer getOrderMode() {
        return orderMode;
    }

    public void setOrderMode(Integer orderMode) {
        this.orderMode = orderMode;
    }

    public String getOrderModeName() {
        return orderModeName;
    }

    public void setOrderModeName(String orderModeName) {
        this.orderModeName = orderModeName;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getOrderTypeName() {
        return orderTypeName;
    }

    public void setOrderTypeName(String orderTypeName) {
        this.orderTypeName = orderTypeName;
    }
}
